
<!doctype html>
<html>
<head>
    <meta charset="utf-8">
    <!-- Set render engine for 360 browser -->
    <meta name="renderer" content="webkit">
    <meta http-equiv="X-UA-Compatible" content="IE=edge">
    <meta name="viewport" content="width=device-width, initial-scale=1">

    <!-- HTML5 shim for IE8 support of HTML5 elements -->
    <!--[if lt IE 9]>
    <script src="https://oss.maxcdn.com/libs/html5shiv/3.7.0/html5shiv.js"></script>
    <![endif]-->


    <link href="/themes/admin_simpleboot3/public/assets/themes/flatadmin/bootstrap.min.css" rel="stylesheet">
    <link href="/themes/admin_simpleboot3/public/assets/simpleboot3/css/simplebootadmin.css" rel="stylesheet">
    <link href="/static/font-awesome/css/font-awesome.min.css" rel="stylesheet" type="text/css">
    <style>
        form .input-order {
            margin-bottom: 0px;
            padding: 0 2px;
            width: 42px;
            font-size: 12px;
        }

        form .input-order:focus {
            outline: none;
        }

        .table-actions {
            margin-top: 5px;
            margin-bottom: 5px;
            padding: 0px;
        }

        .table-list {
            margin-bottom: 0px;
        }

        .form-required {
            color: red;
        }
    </style>
    <script type="text/javascript">
        //全局变量
        var GV = {
            ROOT: "/",
            WEB_ROOT: "/",
            JS_ROOT: "static/js/",
            APP: 'admin'/*当前应用名*/
        };
    </script>
    <script src="/themes/admin_simpleboot3/public/assets/js/jquery-1.10.2.min.js"></script>
    <script src="/static/js/wind.js"></script>
    <script src="/themes/admin_simpleboot3/public/assets/js/bootstrap.min.js"></script>
    <script>
        Wind.css('artDialog');
        Wind.css('layer');
        $(function () {
            $("[data-toggle='tooltip']").tooltip();
            $("li.dropdown").hover(function () {
                $(this).addClass("open");
            }, function () {
                $(this).removeClass("open");
            });
        });
    </script>
    </head>
<body>
<div class="wrap js-check-wrap">
    <ul class="nav nav-tabs">
        <li class="active"><a href="/admin/link/index.html">Link list</a></li>
        <li><a href="/admin/link/add.html">Add Link</a></li>
    </ul>
    <form method="post" class="js-ajax-form margin-top-20" action="/admin/link/listorder.html">
        <div class="table-actions">
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">Sort</button>
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                    data-action="/admin/link/toggle/display/1.html" data-subcheck="true">Display            </button>
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                    data-action="/admin/link/toggle/hide/1.html" data-subcheck="true">Hide            </button>
        </div>
                <table class="table table-hover table-bordered table-list">
            <thead>
            <tr>
                <th width="16"><label><input type="checkbox" class="js-check-all" data-direction="x"
                                             data-checklist="js-check-x"></label></th>
                <th width="50">Sort</th>
                <th width="50">ID</th>
                <th>NAME</th>
                <th>Link Url</th>
                <th width="50">Status</th>
                <th width="120">Actions</th>
            </tr>
            </thead>
            <tbody>
            <!-- #for(x : obj) -->
                            <tr>
                    <td><input type="checkbox" class="js-check" data-yid="js-check-y" data-xid="js-check-x" name="ids[]"
                               value="1"></td>
                    <td><input name='list_orders[1]' class="input input-order mr5" type='text' size='3'
                               value='8'></td>
                    <td>#(x.id)</td>
                    <td>#(x.name)</td>
                    <td><a href="#(x.url)" target="_blank">#(x.url)</a></td>
                    <td>#(x.status==1?'Display':'')</td>
                    <td>
                        <a href="/admin/link/edit/id/#(x.id).html">Edit</a>
                        <a href="/admin/link/delete/id/#(x.id).html" class="js-ajax-delete">
                            Delete                        </a>
                    </td>
                </tr>
                <!-- #end -->
                        </tbody>
            <tfoot>
            <tr>
                <th width="16">
                    <label>
                        <input type="checkbox" class="js-check-all" data-direction="x" data-checklist="js-check-x">
                    </label>
                </th>
                <th width="50">Sort</th>
                <th width="50">ID</th>
                <th>NAME</th>
                <th>Link Url</th>
                <th width="50">Status</th>
                <th width="120">Actions</th>
            </tr>
            </tfoot>
        </table>
        <div class="table-actions">
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit">Sort</button>
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                    data-action="/admin/link/toggle/display/1.html" data-subcheck="true">Display            </button>
            <button class="btn btn-primary btn-sm js-ajax-submit" type="submit"
                    data-action="/admin/link/toggle/hide/1.html" data-subcheck="true">Hide            </button>
        </div>
    </form>
</div>
<script src="/static/js/admin.js"></script>
</body>
</html>